<template>
    <div class="list-posts">
        <div class="inner"   v-for="i in postslist" :key="i.id">
            <div class="title">
                {{i.name}}
                <div class="more">
                    更多 >>
                </div>
            </div>
            <div class="body">
                <l-posts-item :list="i.child"></l-posts-item>
            </div>
        </div>
    </div>
</template>

<script>
    import LPostsItem from '../ListItem/LPostsItem'
    export default {
        name: "ListPosts",
        props:['postslist'],
        components: {
            LPostsItem
        },
    }
</script>

<style scoped lang="less">
    @import "../../style/style.less";
    .list-posts {
        .title {
            height: 55px;
            line-height: 55px;
            font-size: 16px;
            position: relative;
            padding-left: 10px;
            color: #333333;
            &:before {
                content: '';
                width: 3px;
                height: 22px;
                background-color: @theme-color-dark;
                position: absolute;
                top: 17px;
                left: 0;
            }
            .more {
                color: @theme-color-dark;
                float: right;
                font-size: 12px;
            }
        }
    }
</style>